import request from '@/utils/request'


// 根据活动activityId查询球队比赛记录
export function getRecordByActivityId(activityId) {
	return request({
		url: '/data/matchRecord/getRecordByActivityId/' + activityId,
		method: 'get'
	})
}

// 查询球队比赛记录列表
export function listMatchRecord(query) {
	return request({
		url: '/data/matchRecord/list',
		method: 'get',
		params: query
	})
}

// 查询球队比赛记录详细
export function getMatchRecord(id) {
	return request({
		url: '/data/matchRecord/' + id,
		method: 'get'
	})
}

// 新增球队比赛记录
export function addMatchRecord(data) {
	return request({
		url: '/data/matchRecord',
		method: 'post',
		data: data
	})
}

// 修改球队比赛记录
export function updateMatchRecord(data) {
	return request({
		url: '/data/matchRecord',
		method: 'put',
		data: data
	})
}

// 删除球队比赛记录
export function delMatchRecord(id) {
	return request({
		url: '/system/matchRecord/' + id,
		method: 'delete'
	})
}